<template>
	<view class="">

	<view class="ht" v-if="informList.length">
		<view class="inform"  v-for="(items,index) in informList" :key="index">
			<view class="inform_t">
				<view class="inform_t_l">
					<image src="../../static/image/grade/inform02.png" mode=""></image>
					通知消息
				</view>
				<view class="inform_t_r">
					{{items.create_time}}
					<span>{{items.dateo}}</span>
				</view>
			</view>
			<view class=inform_b>
				{{items.msg}}
			</view>
		</view>
		
	</view>
	<view class="noInform" v-else>
		<image src="../../static/image/grade/NOinform.png" mode=""></image>
		暂无通知消息
	</view>
	<!-- 遮罩层 -->
		<view class="goods-model" v-if="loading">
		</view>
		<web-load v-if="loading"></web-load>
	</view>
</template>

<script>
	import webLoad from '../../components/unit/loading.vue';
	export default {
		components:{ webLoad },
		data() {
			return {
				loading: true,
				informList:[],
			}
		},
		onLoad() {
			this.getInform()
		},
		methods:{
			getInform() {
				this.ajax('flag/flagMsg',{
					success: (res) => {
						console.log(res)
						setTimeout(() => {
							this.loading =false
						},500)
						this.informList = res.msg
					}
				})
			}
		}
}
</script>

<style lang="scss">
	page {
		background-color: #F2F2F2;}
	.goods-model{
		position: fixed;
		top:0;
		left:0;
		width: 100%;
		height:100%;
		background: #fff;
		z-index:9;
	}
	.noInform {
		text-align:center;
		image {
			display: block;
			width: 180upx;
			height: 180upx;
			margin: 180upx auto 60upx;
		}
		text {
			color: #000000;
			font-size: 32upx;
		}
	}
	.inform {
		width: 690upx;
		// height: 216upx;
		// box-shadow: 0 2upx 10upx #999999 ; 
		background-color: #FFFFFF;
		box-sizing: border-box;
		border-radius: 20upx;
		margin: 40upx auto;
		padding: 0 40upx;
		
		.inform_t {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 26upx 0;
			border-bottom: 2upx solid #E1E1E1;

			.inform_t_l {
				display: flex;
				align-items: center;

				image {
					width: 34upx;
					height: 34upx;
					margin-right: 10upx;
					margin-top: 2upx;
				}

				font-size: 32upx;
				color: #333333;
				font-weight: Bold;
			}

			.inform_t_r {
				font-size: 24upx;
				color: #C1C1C1;
			}
		}

		.inform_b {
			font-size: 28upx;
			color: #999999;
			line-height: 60upx;
			padding: 10upx 0;
		}
	}
</style>
